@echo off
if not "%1"=="hide" start "" "%~0" hide & exit

:: 如需后台启动前端
start "" /d "D:\aigc-edu\aigc-edu" cmd /c node .next/standalone/server.js


:: 启动 Stable Diffusion WebUI
cd /d "D:\txt2img\sd-webui-aki-v4.11.1-cu128"
"D:\txt2img\sd-webui-aki-v4.11.1-cu128\python\python.exe" ^
  "D:\txt2img\sd-webui-aki-v4.11.1-cu128\launch.py" ^
  --medvram-sdxl ^
  --theme dark ^
  --xformers ^
  --xformers-flash-attention ^
  --api ^
  --autolaunch ^
  --skip-python-version-check ^
  --skip-torch-cuda-test ^
  --skip-prepare-environment ^
  --do-not-download-clip ^
  --skip-version-check ^
  --update-check ^
  --no-download-sd-model